######################################
# Fleet configuration
######################################
outputs:
  default:
    type: elasticsearch
    hosts:
{% for host in groups['es_master'] %}
    - {{ elk_schema }}{{ host }}:9200
{% endfor %}
    #api_key: "example-key"
    username: elastic
    password: "{{ elk_builtin_users.elastic }}"
    ssl_certificate_verify: none

inputs:
  - type: system/metrics

    # Namespace name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
    # For index naming restrictions, see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#indices-create-api-path-params
    data_stream.namespace: default
    use_output: default
    streams:
      - metricset: cpu
        # Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
        data_stream.dataset: system.cpu
      - metricset: memory
        data_stream.dataset: system.memory
      - metricset: network
        data_stream.dataset: system.network
      - metricset: filesystem
        data_stream.dataset: system.filesystem
